package com.xinqi.modules.chat.chat.chat.service;

import com.xinqi.common.mybatis.data.service.BaseService;
import com.xinqi.modules.chat.chat.chat.domain.ChatTranRecordEntity;
import com.xinqi.modules.chat.chat.group.dto.req.ChatTranRecordAddDTO;
import com.xinqi.modules.chat.chat.group.dto.rsp.ChatTranRecordResultDTO;

import java.util.List;


/**
 * 服务层
 *
 * @author: yyzhen
 * @date: 2023/03/29
 */
public interface ChatTranRecordService extends BaseService<ChatTranRecordEntity> {

    /**
     * 添加转发记录
     *
     * @param dto
     * @return
     */
    boolean replaceChatTranRecord(ChatTranRecordAddDTO dto);

    /**
     * 查询转发记录
     *
     * @param userId
     * @return
     */
    List<ChatTranRecordResultDTO> recentChatTranRecordList(Long userId);


}
